<template>
  <div>
    <span v-for="(item, index) in list" :key="index">
      <input type="checkbox" :value="item" v-model="like" />{{ item }}
    </span>

    <div>
      <ul v-for="(item, index) in like" :key="index">
        <li>{{ item }}</li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: ['科幻', '喜剧', '动漫', '冒险', '科技', '军事', '娱乐', '奇闻'],
      like: [],
    }
  },
}
</script>

<style></style>
